package edu.ycxy.poetry.service.serviceImpl;


import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import edu.ycxy.poetry.entity.BookLei;
import edu.ycxy.poetry.mapper.BookLeiMapper;
import edu.ycxy.poetry.service.IBookLeiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author @xin
 * @createDate 2022/3/15
 * @Description
 */
@Service
public class BookLeiServiceImpl extends ServiceImpl<BookLeiMapper, BookLei> implements IBookLeiService {

    @Autowired
    private BookLeiMapper bookLeiMapper;


    //根据vab_dj_list中的id 对应 vab_dj_info 中的 aid ,查询古籍的主标题,如果查询结果为空,则说明没有主标题,直接在 vab_dj_info中查询次标题
    @Override
    public List<BookLei> selectListToInfo(Integer aid) {
        return bookLeiMapper.selectListToInfo(aid);
    }
}
